package com.glela.live.service.impl;

import com.glela.live.dao.PublishHistoryDao;
import com.glela.live.model.PublishHistory;
import com.glela.live.service.PublishHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PublishHistoryServiceImpl implements PublishHistoryService{

    @Autowired
    private PublishHistoryDao publishHistoryDao;

    @Override
    public PublishHistory addPublish(PublishHistory publishHistory) {
        return publishHistoryDao.addPublish(publishHistory);
    }

    @Override
    public List<PublishHistory> getPageList() {
        return publishHistoryDao.getPageList();
    }

    @Override
    public PublishHistory getLastBegin(String streamName) {
        return publishHistoryDao.getLastBegin(streamName);
    }
}
